import Vue from 'vue'
import Router from 'vue-router'
import Articles from '@/components/Articles'
import ArticleAdd from '@/components/ArticleAdd'
import ArticleDetail from '@/components/ArticleDetail'
import ArticleEdit from '@/components/ArticleEdit'
import CommentEdit from '@/components/CommentEdit'
import Notices from '@/components/Notices'
import NoticeAdd from '@/components/NoticeAdd'
import NoticeEdit from '@/components/NoticeEdit'
import NoticeDetail from '@/components/NoticeDetail'
import GoodsArticleAdd from '@/components/GoodsArticleAdd'
import GoodsDetail from '@/components/GoodsDetail'
import GoodsUpdate from '@/components/GoodsUpdate'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Articles',
      component: Articles
    },
    {
      path: '/articles',
      name: 'Articles2',
      component: Articles
    },
    {
      path: '/articleAdd',
      name: 'ArticleAdd',
      component: ArticleAdd
    },
    {
      path: '/articledetail',
      name: 'ArticleDetail',
      component: ArticleDetail
    },
    {
      path: '/articleEdit',
      name: 'ArticleEdit',
      component: ArticleEdit
    },
    {
      path: '/commentEdit',
      name: 'CommentEdit',
      component: CommentEdit
    },
    {
      path: '/notices',
      name: 'Notices',
      component: Notices
    },
    {
      path: '/noticeDetail',
      name: 'NoticeDetail',
      component: NoticeDetail
    },
    {
      path: '/noticeAdd',
      name: 'NoticeAdd',
      component: NoticeAdd
    },
    {
      path: '/noticeEdit',
      name: 'NoticeEdit',
      component: NoticeEdit
    },
    {
      path: '/goodsArticleAdd',
      name: 'GoodsArticleAdd',
      components: GoodsArticleAdd
    },
    {
      path: '/goodsDetail',
      name: 'GoodsDetail',
      components: GoodsDetail
    },
    {
      path: '/goodsUpdate',
      name: 'GoodsUpdate',
      components: GoodsUpdate
    },
  ]
})
